package acm.pta9;

import java.util.Scanner;

public class T5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double a = sc.nextDouble();
        double b = sc.nextDouble();
        double res=a/(b*b);
        System.out.printf("%.1f%n",res);
        if (res>25){
            System.out.println("PANG");
        }else {
            System.out.println("Hai Xing");
        }
    }
}
